/***********************************************************************
 * Module:  KhoSanPhamDoDang.cs
 * Author:  Tuan Nguyen
 * Purpose: Definition of the Class KhoSanPhamDoDang
 ***********************************************************************/

using System;

public class KhoSanPhamDoDang
{
   public string TenKho;
   public string DiaChiNv;
   public string DienThoaiKh;
   
   public System.Collections.ArrayList ChiTietKhoSpdd;
   public Kho kho;
   
   /// <pdGenerated>default parent getter</pdGenerated>
   public Kho GetKho()
   {
      return kho;
   }
   
   /// <pdGenerated>default parent setter</pdGenerated>
   /// <param>newKho</param>
   public void SetKho(Kho newKho)
   {
      if (this.kho != newKho)
      {
         if (this.kho != null)
         {
            Kho oldKho = this.kho;
            this.kho = null;
            oldKho.RemoveKhoSanPhamDoDang(this);
         }
         if (newKho != null)
         {
            this.kho = newKho;
            this.kho.AddKhoSanPhamDoDang(this);
         }
      }
   }

}